var server = require("./server.js"),
	router = require("./router.js");

server.start(router.route , config.etc.onPort || 8888);

if (config.etc.watchingTpl){
	var watcher = require("./lib/watchNode.js");
	var absDir = __dirname.replace(/\\/g,'/');
	watcher.takeCare([absDir+"/controller" ,absDir + "/model" , absDir + "/base" ,absDir + "/lib"] );
}
